package cn.golxen.rsms.mapper;

import cn.golxen.rsms.bean.bo.*;
import cn.golxen.rsms.bean.entity.GoodsLog;
import cn.golxen.rsms.bean.entity.PayLog;

import java.time.LocalDateTime;
import java.util.List;

public interface LogMapper {
    int addGoodsLog(GoodsLog goodsLog);
    List<GoodsLog> getGoodsLogOnSalesAnalysisByDay(int day,int storeId);
    List<AnalysisGoodsBo>  getGoodsLogOnSalesAnalysisByDay2(int day,int storeId);
    GoodsLog getLatestSellingTime(String code,int storeId);
    List<GetPurchaseTimesBo> getPurchaseTimesListByDay(int day, int storeId);

    int addGoodsLogList(List<GoodsLog> goodsLogs);

    List<GoodsLog> getGoodsLogByPeriod(GetGoodsLogByPeriodBo getGoodsLogByPeriodBo);
    List<GoodsLog> getSalesGoodsLogByPeriod(BusinessDateBo bo);
    List<GetGoodsWarnStateBo> getGoodsSalesDaysByLogDayAndCode(int day, List<String> codeList, int storeId);
    int updateOrderIsDone(String orderId,String customerId,int isDone);

    int addPayLog(PayLog payLog);

    List<PayLog> getPayLogListByPeriod(BusinessSalesFlowBo bo);
    List<PayLog> getDonePayLogListByPeriod(LocalDateTime startDate,LocalDateTime endDate, int storeId);

    List<GoodsSalesTypeNumBo> getGoodsSalesTypeNumByDay(LocalDateTime startDate,LocalDateTime endDate,int storeId);

    PayLog getLastOrderByDone(int storeId);

}
